<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <router-view />
    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/one/two" icon="home-o">标签</van-tabbar-item>
      <van-tabbar-item to="/one/lu" icon="search">标签</van-tabbar-item>
      <van-tabbar-item to="/one/chen" icon="friends-o">标签</van-tabbar-item>
      <van-tabbar-item to="/one/yi" icon="setting-o">标签</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script setup>
 const onClickLeft = () => history.back();
</script>

<style lang="scss" scoped>
</style>